import React, { Component } from "react";
import { NavLink, Route } from "react-router-dom";

import Login from "./Login";
import Register from "./Register";
export default class user extends Component {
  render() {
    return (
      <div>
        user <br />
        二级路由导航 <br />
        <NavLink to="/user/login"> 登录 </NavLink>
        <NavLink to="/user/register"> 注册 </NavLink>
        {/* 二级路由展示区域 */}
        <Route path="/user/login" component={Login} />
        <Route path="/user/register" component={Register} />
      </div>
    );
  }
}
